﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace Skynet.ServiceContracts.DataContracts
{
    [DataContract( Name="DCAuthor")]
    public class DCAuthor
    {
        [DataMember(Order=0)]
        public Guid Id { get; set; }

        private string _FirstName; 
        [DataMember(Order = 1)]
        public string FirstName {
            get { return this._FirstName; }
            set {
                if (string.IsNullOrWhiteSpace(value))
                    throw new ApplicationException("must be not null");
                this._FirstName = value;  
            }
        }        
        [DataMember(Order = 2)]
        public string LastName { get; set; }
        [DataMember(Order = 3)]
        public string WebSite { get; set; }
        
        
    }
}
